package com.hutao.chargingpile.pitfall.service.impl;

import com.hutao.chargingpile.pitfall.pojo.entity.*;
import com.hutao.chargingpile.pitfall.mapper.CpHiddenMapper;
import com.hutao.chargingpile.pitfall.service.CpHiddenService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 隐患管理表 服务实现类
 * </p>
 *
 * @author HuTao
 * @since 2023-03-23
 */
@Service
public class CpHiddenServiceImpl extends ServiceImpl<CpHiddenMapper, CpHidden> implements CpHiddenService {

    @Resource
    private CpHiddenMapper cpHiddenMapper;

    @Override
    public List<CpHidden> findAllPageHidden(Map<String, Object> map) {
        return cpHiddenMapper.findAllPageHidden(map);
    }

    @Override
    public Integer coutHidden(Map<String, Object> map) {
        return cpHiddenMapper.coutHidden(map);
    }

    @Override
    public List<String> findChargingStations() {
        return cpHiddenMapper.findChargingStations();
    }

    @Override
    public List<CpHandleCode> findCpHandleCode() {
        return cpHiddenMapper.findCpHandleCode();
    }

    @Override
    public List<CpHandleType> getHandleType() {
        return cpHiddenMapper.getHandleType();
    }

    @Override
    public List<CpRank> getRank() {
        return cpHiddenMapper.getRank();
    }

    @Override
    public List<CpChargingpileType> chargingpile() {
        return cpHiddenMapper.chargingpile();
    }

    @Override
    public boolean dealSave(CpHidden CpHidden) {
        if (cpHiddenMapper.dealSave(CpHidden)){
            return true;
        }else {
            return false;
        }

    }

}
